<template>
	<view>
		<u-navbar title="详情" @rightClick="rightClick" :autoBack="true">
		</u-navbar>
		<view style="padding-top: 170rpx;">
			<list :item="obj" ref="childRef"></list>
		</view>

	</view>
</template>

<script>
	import list from '../components/objList.vue'
	export default {
		data() {
			return {
				id: 0,
				obj: {}
			}
		},
		onLoad(option) {
			this.id = option.id
			this.getList()
		},
		methods: {
			rightClick() {
				uni.navigateBack()
				console.log('rightClick');
			},
			leftClick() {
				uni.navigateBack()
				console.log('leftClick');
			},
			async getList() {
				var user=uni.getStorageSync("loginUser")
				var loginId=''
				if(user!==null&&user!==''&&user!==undefined){
					loginId=user.id
				}
				const res = await this.$myRuquest({
					url: '/font/' + this.id+"?loginId="+loginId,
				})
				this.obj = res.data.data
			}
		},
		components: {
			"list": list,
		},
	}
</script>

<style>

</style>